cmake_minimum_required(VERSION 3.22 FATAL_ERROR)

project(pjt9 LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

add_executable(pjt9 hello-world.cpp)

# we will print the system name in the code
target_compile_definitions(pjt9
  PUBLIC
    "SYSTEM_NAME=\"${CMAKE_SYSTEM_NAME}\""
)
